package com.zhang.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhang.system.dto.RoleSearchDTO;
import com.zhang.system.entity.Role;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author 创世神
 * @since 2023-07-03
 */
public interface IRoleService extends IService<Role> {

    boolean isAdmin(List<Long> roleIds);

    boolean isAdmin(Long roleId);

    Page<Role> searchRoles(RoleSearchDTO roleSearchDTO);
}
